package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 作品对象 artwork
 *
 * @author ruoyi
 * @date 2025-01-20
 */
public class Artwork extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 作品ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 作品标题 */
    @Excel(name = "作品标题")
    private String title;

    /** 图片 */
    @Excel(name = "图片")
    private String imgUrl;

    /** 作品描述 */
    @Excel(name = "作品描述")
    private String description;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long likesCount;

    /** 评论数 */
    @Excel(name = "评论数")
    private Long commentsCount;

    /** 收藏数 */
    @Excel(name = "收藏数")
    private Long favoritesCount;

    /** 状态：0下架，1上架 */
    @Excel(name = "状态：0下架，1上架")
    private Long status;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setImgUrl(String imgUrl)
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl()
    {
        return imgUrl;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setLikesCount(Long likesCount)
    {
        this.likesCount = likesCount;
    }

    public Long getLikesCount()
    {
        return likesCount;
    }
    public void setCommentsCount(Long commentsCount)
    {
        this.commentsCount = commentsCount;
    }

    public Long getCommentsCount()
    {
        return commentsCount;
    }
    public void setFavoritesCount(Long favoritesCount)
    {
        this.favoritesCount = favoritesCount;
    }

    public Long getFavoritesCount()
    {
        return favoritesCount;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("title", getTitle())
                .append("imgUrl", getImgUrl())
                .append("description", getDescription())
                .append("likesCount", getLikesCount())
                .append("commentsCount", getCommentsCount())
                .append("favoritesCount", getFavoritesCount())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("categoryId", getCategoryId())
                .toString();
    }
}
